{{extend "test_layout.html"}}

{{block sub_menu}}
{{sub_menu(menu_items, 'test', 'testplan')}}
{{end}}

{{block content_main}}
{{include "inc_jqmultiselect.html"}}
{{link "tforms.css"}}
{{use "jqutils"}}
<div class="content">
    <div class="box">
        <h2>测试计划录入</h2>
        <div class="box-body">
            <table class="table">
                <tr>
                    <th>选择</th>
                    <th>测试编号</th>
                    <th>测试计划名称</th>
                    <th>测试时间</th>
                    <th>测试状态</th>
                </tr>
                <tbody>
                    {{for row in plans:}}
                    <tr>
                        <td><a href="/tests/plans/assign_to?planexecute={{=planexecute_id}}&test_id={{=row.id}}">关联</a></td>
                        <td><a href="/tests/plans/view/{{=row.id}}">{{=row.test_id}}</a></td>
                        <td>{{=row.title}}</td>
                        <td>{{=row.origin_begin_date}} - {{=row.origin_end_date}}</td>
                        <td>{{=row.get_display_value('status')}}</td>
                    </tr>
                    {{pass}}
                </tbody>
            </table>
            <div class="box-bottom">
            <a href="/tests/plans/add?planexecute={{=planexecute_id}}" class="btn btn-green">创建新计划</a>
            </div>
        </div>
    </div>
</div>
{{end}}
